@extends('layout.master')

@section('title', '简历列表')

@section('content')

    <body>
    <div id="w1" class="easyui-window" data-options="iconCls:'icon-save',minimizable:false,closed:true">
        <form id="form2">
            <table style="width: 100%;" id="table">
                <tr>
                    <td style="width: 15%;text-align: center">客户全名：</td>
                    <td style="width: 85%;"><input class="easyui-textbox khqm"  name="khqm"  style="width:100%;height:32px" readonly></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户简称：</td>
                    <td style="width: 85%;"><input class="easyui-textbox khjc"  name="khjc"  style="width:100%;height:32px" readonly></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户进展：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="khjz" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="新入库">新入库</option>
                            <option value="签单成功">签单成功</option>
                            <option value="深度回访">深度回访</option>
                            <option value="项目分类">项目分类</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">跟进记录：</td>
                    <td style="width: 85%;">
                        <textarea  class="fsyj comments" rows="10" cols="10" name="gjnr"></textarea>

                    </td>
                </tr>
                <tr><td colspan="2" style="text-align: center"><a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="$api.saveshop()">确定</a></td></tr>
            </table>
        </form>
    </div>
    <div id="w2" class="easyui-window" data-options="iconCls:'icon-save',minimizable:false,closed:true">
        <form id="form3">
            <table style="width: 100%;" id="table">
                <tr>
                    <td style="width: 15%;text-align: center">客户全名：</td>
                    <td style="width: 85%;"><input class="easyui-textbox khqm"  name="khqm"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户简称：</td>
                    <td style="width: 85%;"><input class="easyui-textbox khjc"  name="khjc"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">联系人：</td>
                    <td style="width: 85%;"><input class="easyui-textbox lxr"  name="lxr"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">性别：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="xb" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">生日：</td>
                    <td style="width: 85%;"><input class="easyui-textbox shr"  name="shr"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">成立日期：</td>
                    <td style="width: 85%;">
                        <input id="dd" type="text" class="easyui-datebox"  name="clrq" style="width:100%;height:32px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">职位：</td>
                    <td style="width: 85%;"><input class="easyui-textbox zw"  name="zw"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">微信：</td>
                    <td style="width: 85%;"><input class="easyui-textbox wx"  name="wx"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">QQ：</td>
                    <td style="width: 85%;"><input class="easyui-textbox qq"  name="qq"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">手机：</td>
                    <td style="width: 85%;"><input class="easyui-textbox sj"  name="sj"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">座机：</td>
                    <td style="width: 85%;"><input class="easyui-textbox zj"  name="zj"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">邮箱：</td>
                    <td style="width: 85%;"><input class="easyui-textbox yx"  name="yx"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">工作单位：</td>
                    <td style="width: 85%;"><input class="easyui-textbox gzdw"  name="gzdw"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">网址：</td>
                    <td style="width: 85%;"><input class="easyui-textbox wz"  name="wz"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">地址：</td>
                    <td style="width: 85%;"><input class="easyui-textbox dz"  name="dz"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">备注：</td>
                    <td style="width: 85%;"><input class="easyui-textbox bz"  name="bz"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">国家：</td>
                    <td style="width: 85%;"><input class="easyui-textbox gj"  name="gj"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">省：</td>
                    <td style="width: 85%;"><input class="easyui-textbox sheng"  name="sheng"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">市：</td>
                    <td style="width: 85%;"><input class="easyui-textbox shi"  name="shi"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">城市：</td>
                    <td style="width: 85%;"><input class="easyui-textbox chs"  name="chs"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">区县：</td>
                    <td style="width: 85%;"><input class="easyui-textbox qx"  name="qx"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">行业：</td>
                    <td style="width: 85%;"><input class="easyui-textbox hy"  name="hy"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">传真：</td>
                    <td style="width: 85%;"><input class="easyui-textbox chz"  name="chz"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">来源：</td>
                    <td style="width: 85%;"><input class="easyui-textbox ly"  name="ly"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">报考项目：</td>
                    <td style="width: 85%;"><input class="easyui-textbox bkxm"  name="bkxm"  style="width:100%;height:32px"></td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">添加qq好友：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="sfjqqhy" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="是">是</option>
                            <option value="否">否</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">解决客户疑虑：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="sfjjkhyl" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="是">是</option>
                            <option value="否">否</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户进展：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="khjz" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="新入库">新入库</option>
                            <option value="签单成功">签单成功</option>
                            <option value="深度回访">深度回访</option>
                            <option value="项目分类">项目分类</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户类型：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="khlx" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="个人客户">个人客户</option>
                            <option value="公司客户">公司客户</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;text-align: center">客户星级：</td>
                    <td style="width:85%">
                        <select class="easyui-combobox" name="khxj" style="width:100%;">
                            <option value="">请选择</option>
                            <option value="1星">1星</option>
                            <option value="2星">2星</option>
                            <option value="3星">3星</option>
                            <option value="4星">4星</option>
                            <option value="5星">5星</option>
                        </select>
                    </td>
                </tr>
                <tr><td colspan="2" style="text-align: center"><a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="$api.addkh()">确定</a></td></tr>
            </table>
        </form>
    </div>
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="iconCls:'icon-zoom',collapsible:true,region:'north'" style="height: 95px" title="搜索条件">
            <form action="" id="form">
                <table style="width:100%">
                    <tr>
                        <td style="width:6%;" class="center">物料编码：</td>
                        <td style="width:19%"><input class="easyui-textbox" name="wlbm" style="width:100%;height:32px"
                                                     prompt=""></td>
                        <td style="width:6%;" class="center">物料名称：</td>
                        <td style="width:19%"><input class="easyui-textbox" name="wlmc" style="width:100%;height:32px"
                                                     prompt=""></td>
                        <td style="width:6%;" class="center">材质：</td>
                        <td style="width:19%"><input class="easyui-textbox" name="cz" style="width:100%;height:32px"
                                                     prompt=""></td>

                                                     <td style="width:6%;" class="center">状态：</td>
                        <td style="width:19%">
                            <select class="easyui-combobox" name="valid" style="width:100%;">
                                <option value="">请选择</option>
                                <option value="无效">无效</option>
                                <option value="有效">有效</option>
                            </select>
                        </td>
                    </tr>
                </table>
                <div class="toolbar" >
                    <a href="#" class="easyui-linkbutton" onclick="$api.clearFrom()" iconCls="icon-empty">清空</a>
                    <a href="#" class="easyui-linkbutton" onclick="$api.doSearch();" iconCls="icon-zoom">查询</a>
                    <a href="#" class="easyui-linkbutton" onclick="$api.addTab('新增数据','view_addwl1');" iconCls="icon-add">新增</a>
                    <a href="#" class="easyui-linkbutton" onclick="$api.addTab('编辑数据','view_addwl2',3);" iconCls="icon-pencil">编辑</a>
                    <a href="#" class="easyui-linkbutton" onclick="$api.shundo();" iconCls="icon-undo">恢复</a>

                    <a href="#" class="easyui-linkbutton" onclick="$api.shdelete();" iconCls="icon-delete">作废</a>

                </div>
            </form>
        </div>
        <!--上面是模糊搜索区域-->
        <div data-options="iconCls:'icon-folder_page',collapsible:true,region:'center'" title="搜索结果" style="height: 500px;">
            <div class="easyui-layout" data-options="fit:true">
                <table style="width:100%;" id="dg">
                    <thead frozen="true">
                    <tr>
                        <th data-options="field:'ck',checkbox:true"></th>
                        <th data-options="field:'wlbm',width:120,align: 'center', title: '物料编码'"></th>
                        <th data-options="field:'wlmc',width:180,align: 'center', title: '物料名称'"></th>
                    </tr>
                    </thead>
                    <thead>
                    <tr>
                        <th data-options="field:'jz',width:80,align: 'center', title: '净重'"></th>
                        <th data-options="field:'yt',width:80,align: 'center', title: '用途'"></th>
                        <th data-options="field:'tj',width:180,align: 'center', title: '体积',sortable:true"></th>
                        <th data-options="field:'cz',width:120,align: 'center', title: '材质'"></th>
                        <th data-options="field:'create_time',width:120,align: 'center', title: '录入时间'"></th>
                        <th data-options="field:'update_time',width:120,align: 'center', title: '更新时间'"></th>

                        <th data-options="field:'gnms',width:160,align: 'center', title: '功能描述'"></th>
                        <th data-options="field:'valid',width:160,align: 'center', title: '数据状态'"></th>

                    </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>

    <script>

        $api.myDataGird(
            {url: $api.url +"goodslist",obj: '#dg',tt:3,singleSelect: false,plainBtn:true,pagination:true},
        );
        //CW2024020050  
        //2479.1399999999999   财务核实报销金额
        //2383.6399999999999   公司差旅费

        function formatNumber(value, row, index) {  
            console.log(typeof value);
            var num = parseFloat(value); 
            return num.toFixed(2);  
            // if (typeof value === 'number') {  
            //     return value.toFixed(2); // 保留两位小数  
            // } else {  
            //     return value; // 如果不是数字，原样返回  
            // }  
        } 
    </script>
    <style>
        .comments {
            width:100%;/*自动适应父布局宽度*/
            overflow:auto;
            word-break:break-all;
            /*在ie中解决断行问题(防止自动变为在一行显示，主要解决ie兼容问题，ie8中当设宽度为100%时，文本域类容超过一行时，
            当我们双击文本内容就会自动变为一行显示，所以只能用ie的专有断行属性“word-break或word-wrap”控制其断行)*/
        }
    </style>
    </body>

@endsection

